
<!DOCTYPE html>
<html lang="en">
    <include file="Public:header" />
        <!-- Side menu -->
        <!-- 引用header.html -->
        <!-- /Side menu -->
        
        <!-- Main window -->
        <div class="main_container" id="users_page">

            <div class="row-fluid">

                <h2 class="heading">
                    活动管理
                </h2>
            </div> <!-- /row-fluid -->

            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>修改活动相关信息</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                
            <form class="form-horizontal"  method="post" action="__URL__/updateactivity" enctype="multipart/form-data">
                  <input type="hidden" name="activity_id" value="<?php echo $activity[0]['activity_id']; ?>">
                  <input type="hidden" name="oldpic" value="<?php echo $activity[0]['activity_picture']; ?>">
                 
        <div class="widget-body">
              <div class="widget-forms clearfix">
                <form class="form-horizontal">

                   <div class="control-group">
                    <label class="control-label">活动名称:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_name"  type="text"  value=<?php  echo $activity[0]['activity_name'];  ?>>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">活动地址:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_address"  type="text"  value=<?php  echo $activity[0]['activity_address'];  ?>>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">活动时间:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_time"  type="date" value=<?php  echo $activity[0]['activity_time'];  ?>>
                    </div>
                </div>

               <div class="control-group">
                    <label class="control-label">活动经费:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_money"   type="text" value=<?php  echo $activity[0]['activity_money'];  ?>>
                    </div>
                </div>

  <div class="control-group">
                    <label class="control-label">活动介绍:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_introduce"   type="text" value=<?php  echo $activity[0]['activity_introduce'];  ?>>
                    </div>
                </div>

  <div class="control-group">
                    <label class="control-label">活动人数:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_people_number"   type="text" value=<?php  echo $activity[0]['activity_people_number'];  ?>>
                    </div>
                </div>

                <div class= "control-group">
                    <label class="control-label">活动联系电话:</label>
                    <div class="controls">
                      <input class="span7 tip" name="activity_tel"   type="text" value=<?php  echo $activity[0]['activity_tel'];  ?>>
                    </div>
                </div>

          
 <div class="control-group">
  <label class="control-label">活动照片</label>
                    <div class="controls">
                       
 <td><img src="__PUBLIC__/Uploads/sportphoto/{$activity[0]['activity_picture']}" width="90" alt="活动照片" ></td>

 </div>
 </div>
                 
<div class="form-group">
                    <label class="control-label">修改活动照片</label>
                     <div class="controls">
<input type="file" name="activity_picture" >


 </div>             
                 </div>


            
            <div class="widget-footer">
            <div class="controls">
               <button class="btn btn-primary" type="submit">保存修改信息</button>
               <a href="#" onClick="javascript :history.back(-1);"><button class="btn" type="button">取消</button></a>
            </div>
            </div>
            </form>
          </div>
        </div> 
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>